package twb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class HelloController {

	/*@RequestMapping("/hello/{name}")
	public String hello(@PathVariable String name, Model model) {
		model.addAttribute("name", name);
		return "hello/hello";
	}*/
	
	@RequestMapping(value = "/toMyView",  method = RequestMethod.GET)
	public String HelloWorld() {
		return "MyView";
	}

	@RequestMapping(value = "/gb.do",  method = RequestMethod.GET)
	public String goodbye() {
		return "goodbye";
	}
}
